﻿<UserControl x:Class="OnlineVideos.ShowAudio"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
     xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480" Loaded="UserControl_Loaded">
    
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <ListBox x:Name="lbxAudioList"  Grid.Row="0" Margin="0,-30,0,8" Height="500"  SelectionChanged="lbxAudioList_SelectionChanged" Foreground="White" VerticalAlignment="Top" >
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Vertical">
                        <StackPanel Orientation="Horizontal" >
                            <toolkit:ContextMenuService.ContextMenu>
                                <toolkit:ContextMenu Opened="ContextMenu_Opened" x:Name="ShowVideoContaxt">
                                  
                                    <toolkit:MenuItem   Click="btnpintostart_Click" x:Name="Pin">
                                    </toolkit:MenuItem>
                                        <toolkit:MenuItem Header="add to favorites" x:Name="favorites" Click="btnaudioFavSong_Click"/>
                                    <toolkit:MenuItem Header="report broken link" Click="btnaudioBrokenSong_Click">
                                    </toolkit:MenuItem>
                                    <toolkit:MenuItem Header="share with friends" Click="audiosharelink_Click">
                                    </toolkit:MenuItem>
                                    <toolkit:MenuItem x:Name="Rating" Header="{Binding Ratetitle}" Click="audioratelink_Click">
                                    </toolkit:MenuItem>
                                        <toolkit:MenuItem Header="delete link" x:Name="del" Click="del_Click_1">
                                        </toolkit:MenuItem>
                                    </toolkit:ContextMenu>
                            </toolkit:ContextMenuService.ContextMenu>

                            <Image Source="{Binding Songplay}" Height="43" Width="43" VerticalAlignment="Center" Margin="10,33,20,0"  Tag="{Binding Songplay}" x:Name="audioimg"/>
                                <TextBlock Text="{Binding Title}" Name="tblkchno" Margin="-2,30,0,0" Width="400" FontSize="28" VerticalAlignment="Center" TextWrapping="Wrap" Tag="{Binding LinkUrl}"/>
                                <Image x:Name="ringtone" Tag="{Binding RingToneDetails}" Source="/Images/PlayerImages/editringtone.png" Margin="-75,30,0,0" Stretch="Fill" Height="48" Width="48" MouseLeftButtonDown="ringtone_MouseLeftButtonDown" ></Image>

                        </StackPanel>
                        
                        <toolkit:PerformanceProgressBar x:Name="MyProgressBar"  
                                                 IsIndeterminate="False" Foreground="Red"  Width="300" Tag="{Binding LinkUrl}"  Background="Black" HorizontalAlignment="Left">
                        </toolkit:PerformanceProgressBar>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>

        <Canvas>
            <TextBlock Canvas.Top="200" Canvas.Left="80" FontSize="28" x:Name="tblkFavNoAudio" Visibility="Collapsed"/>
        </Canvas>
        <toolkit:PerformanceProgressBar
            VerticalAlignment="Top"
            x:Name="performanceProgressBar" Foreground="Red"/>
    </Grid>
</UserControl>
